<h2><?php __('View Image'); ?></h2>
<div id="LilgalleryViewNav">
	<?php
		if (!empty($image['Image']['lft'])) {
			echo $html->link(__('Prev', true), array('action'=>'view', $image['Image']['lft']), array('class'=>'prev'));
		}
		if (!empty($image['Image']['rght'])) {
			echo $html->link(__('Next', true), array('action'=>'view', $image['Image']['rght']), array('class'=>'next'));
		}
	?>
</div>
<div id="LilgalleryViewImage">
	<?php
		echo $lilgallery->thumb($image['Image'], array('id'=>'LilgalleryViewThumb'));
	?>
	<script type="text/javascript">
		$(document).ready(function(){
			$(window).bind("load", function() { 
				$('#LilgalleryViewThumb').attr('src', "<?php echo $lilgallery->imageUrl($image['Image']); ?>");
			}); 
		}); 
	</script>
</div>